def inbound_mix_1():
  """Inbound call to DN2, abnormal release Ext1DN1"""
  Ext1SipPhone1.MakeCall(DN2)
  Ext1SipPhone1.ReleaseCall()

def inbound_mix_2():
  """Inbound call to DN2,  release DN2"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.ReleaseCall()


def inbound_mix_3():
  """Inbound call to DN2,  release Ext1DN1"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  Ext1SipPhone1.ReleaseCall()


def inbound_mix_6():
  """Inbound to  DN2, two step transfer to DN3, release DN3"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(DN3)
  SipPhone3.AnswerCall()
  DN2.CompleteTransfer()
  SipPhone3.ReleaseCall()
  
def inbound_mix_7():
  """Inbound to  DN2, DN2 init transfer to DN3, release DN1, release DN2"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(DN3)
  Ext1SipPhone1.ReleaseCall()
  DN2.ReleaseCall()
  
def inbound_mix_8():
  """Inbound to  DN2, DN2 init transfer to DN3, release DN1, DN3 answer, release DN3"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(DN3)
  Ext1SipPhone1.ReleaseCall()
  SipPhone3.AnswerCall()
  SipPhone3.ReleaseCall()  
  
def inbound_mix_9():
  """Inbound to  DN2, DN1 init transfer to DN3, release DN2, DN3 answer, release DN3"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  Ext1SipPhone1.InitiateTransfer(DN3)
  DN2.ReleaseCall()
  SipPhone3.AnswerCall()
  SipPhone3.ReleaseCall()   

  
def inbound_mix_12():
  """Inbound call to  DN2, two step transfer to DN3, release DN3"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(DN3)
  SipPhone3.AnswerCall()
  DN2.CompleteTransfer()
  SipPhone3.ReleaseCall()

def inbound_mix_13():
  """Inbound call to  DN2, two step transfer to DN3, abnormal release Ext1DN1"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(DN3)
  DN2.ReleaseCall()
  Ext1SipPhone1.ReleaseCall()

def inbound_mix_14():
  """Inbound call to DN2, two step transfer to DN3, completed before consulted party answer"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(DN3)
  DN2.CompleteTransfer()
  SipPhone3.AnswerCall()
  Ext1SipPhone1.ReleaseCall()

def inbound_mix_15():
  """Inbound call, two step transfer to DN3, completed before consulted party answer, abnor"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(DN3)
  DN2.CompleteTransfer()
  Ext1SipPhone1.ReleaseCall()


def inbound_mix_21():
  """Inbound call to DN2, inbound conference to DN3, release Ext1DN1, DN2"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateConference(DN3)
  SipPhone3.AnswerCall()
  DN2.CompleteConference()
  Ext1SipPhone1.ReleaseCall()
  DN2.ReleaseCall()

def inbound_mix_22():
  """Inbound call to DN2, DN2 cinit conference to DN3, abnorl release DN2, release Ext1DN1"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateConference(DN3)
  DN2.ReleaseCall()
  Ext1SipPhone1.ReleaseCall()



def inbound_mix_26():
  """Inbound call to DN2, DN2 conference to DN3, completed before consulted party answer"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateConference(DN3)
  DN2.CompleteConference()
  SipPhone3.AnswerCall()
  Ext1SipPhone1.ReleaseCall()
  DN2.ReleaseCall()

def inbound_mix_27():
  """Inbound call to DN2, DN2 conf to DN3, compl before cons. party answer, abnor. release DN2"""
  Ext1SipPhone1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateConference(DN3)
  DN2.CompleteConference()
  DN2.ReleaseCall()
  SipPhone3.AnswerCall()
  Ext1SipPhone1.ReleaseCall()



